package ZuoYe18;

public class HomeWork8 {

	public static void main(String[] args) {
		int insIdex = 3;		
		  int[] array = new int [6];
		  array[0] = 1;
		  array[1] = 2;
		  array[2] = 3;
		  array[3] = 4;
		  array[4] = 5;
		for (int i = array.length - 2; i >= insIdex; i--) {
			array[i + 1] = array[i];
		}
		array[insIdex] = 6;
		for ( int i : array  ) {
			System.out.print(i+ " ");
		}

	}

}
